﻿<Window x:Class="Waf.Writer.Presentation.Views.SaveChangesWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p="clr-namespace:Waf.Writer.Presentation.Properties"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:vm="clr-namespace:Waf.Writer.Applications.ViewModels;assembly=Waf.Writer.Applications"
    mc:Ignorable="d" d:DataContext="{d:DesignInstance vm:SaveChangesViewModel}"
    Title="{Binding Title}" MinWidth="440" MinHeight="300" SizeToContent="WidthAndHeight" ShowInTaskbar="False" 
    Icon="{StaticResource WriterImageSource}">
    
    <Grid Margin="0,0,11,11">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <Label Content="{x:Static p:Resources.SaveChangesTo}" Padding="0" Grid.ColumnSpan="4" Style="{StaticResource HeaderLabel}" />
        
        <Border BorderBrush="#828790" BorderThickness="1" Grid.ColumnSpan="4" Grid.Row="1" Margin="11,11,0,11">
            <ScrollViewer Padding="4">
                <ItemsControl ItemsSource="{Binding Documents}" DisplayMemberPath="FileName"/>
            </ScrollViewer>
        </Border>
        
        <Button Command="{Binding YesCommand}" Content="{x:Static p:Resources.YesMenu}" IsDefault="True" Grid.Column="1" Grid.Row="2"/>
        <Button Command="{Binding NoCommand}" Content="{x:Static p:Resources.NoMenu}" Grid.Column="2" Grid.Row="2"/>
        <Button Content="{x:Static p:Resources.CancelMenu}" IsCancel="True" Grid.Column="3" Grid.Row="2"/>
    </Grid>
    
</Window>
